import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.column.operation.query',
            defaultMessage: '查询'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.column.operation.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.operation.add',
            defaultMessage: '新增'
        }),
        format: '/add'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.operation.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    approve: {
        url: '/:id/approve',
        title: formatMessage({
            id: 'routes.operation.approve',
            defaultMessage: '审核'
        }),
        format: '/{0}/approve'
    },
    finalApprove: {
        url: '/:id/finalApprove',
        title: formatMessage({
            id: 'routes.operation.finalApprove',
            defaultMessage: '终审'
        }),
        format: '/{0}/finalApprove'
    },
    force: {
        url: '/:id/force',
        title: formatMessage({
            id: 'routes.operation.force',
            defaultMessage: '强制修改'
        }),
        format: '/{0}/force'
    },
});

export default routes;
